package com.company;

import java.lang.reflect.Method;
import java.util.Scanner;

/**
 * Created by asus on 2017/8/21.
 */
public class Type {
    private int i;
    private long l;
    private float f;
    private double d;
    private String s;

    Type(String st){
        Scanner stdin = new Scanner(st);
        this.s = stdin.nextLine();
        this.f = stdin.nextFloat();
        this.d = stdin.nextDouble();
        this.i = stdin.nextInt();
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public long getL() {
        return l;
    }

    public void setL(long l) {
        this.l = l;
    }

    public float getF() {
        return f;
    }

    public void setF(float f) {
        this.f = f;
    }

    public double getD() {
        return d;
    }

    public void setD(double d) {
        this.d = d;
    }

    public String getS() {
        return s;
    }

    public void setS(String s) {
        this.s = s;
    }

    public String toString(){
        return "int:" + i + "long:" + l + "float:" + f + "double:" + d + "String:" + s;
    }

    Method m;

}
